package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.exportRFCPanel.listeners;

import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.controller.exportRFC.ActualiseNewsListThread;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.exportRFCPanel.ExportRFCPanel;

public class ExportPanelShowAcitonListener implements ComponentListener{

	private ActualiseNewsListThread actualiseNewsListThread;
	private ExportRFCPanel exportRFCPanel;
	
	public ExportPanelShowAcitonListener(ExportRFCPanel exportRFCPanel){
		
		this.exportRFCPanel = exportRFCPanel;
	}
	

	@Override
	public void componentHidden(ComponentEvent e) {

	}

	@Override
	public void componentMoved(ComponentEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void componentResized(ComponentEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void componentShown(ComponentEvent e) {

		this.actualiseNewsListThread = new ActualiseNewsListThread(this.exportRFCPanel);
		this.actualiseNewsListThread.start();
		
	}

}
